Release 10.1A: OpenEdge Data Management:
DataServer for Microsoft SQL Server
Loading results into a temp-table
This technique allows you to:
The temp-table approach maintains some separation between the data and the foreign data source which allows you to process the result sets quite independent of its database origin. Also, the result set definition is not contained within the schema holder.
Unless you pass unprepared dynamic temp-table handles into which the result sets are to be loaded, you still need to ensure that the temp-table record definition matches that of the stored procedures result set(s).
Passing empty temp-tables with the
LOAD-RESULT-INTOphrase generates temp-table definitions dynamically based on a default mapping of data types. This method provides a data retrieval method completely independent of the foreign data source.The
Note: TheLOAD-RESULT-INTOmethod represents a highly efficient means to transfer stored procedure result sets into temp-tables and provides significant performance gains over other techniques used to accomplish this same goal.proc-text-bufferand the special native views techniques use the basicRUN STORED-PROCstatement and are backward compatible to earlier versions of the Progress 4GL. TheLOAD-RESULT-INTOphrase provides a new technique to populate temp-tables directly in the 4GL.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |